CONFIG -= console app_bundle qt
TARGET = CSB
TEMPLATE = lib
unix{
	!mac{
		DESTDIR = $$PWD/../lib/linux/
	} else {
		DESTDIR = $$PWD/../lib/apple/
	}
}
win32{
	DESTDIR = $$PWD/../lib/windows/
}

CONFIG(debug, debug|release) {
	DEFINES += CSB_DEBUG
}
## 打包静态库打开下面的注释 ##
#CONFIG += staticlib

SOURCES += \
    src/list.cpp \
    src/laser.cpp \
    src/err.cpp \
    src/emitter.cpp \
    src/csobj.cpp \
    src/csnode.cpp \
    src/csb.cpp \
    src/action.cpp \
    src/csbmath.cpp \
    src/utils.cpp

HEADERS += \
    include/action.h \
    include/csb.h \
    include/csobj.h \
    include/emitter.h \
    include/err.h \
    include/laser.h \
    include/types.h \
    include/list.h \
    include/utils.h \
    include/csnode.h \
    include/coord.h \
    include/config.h \
    include/csbmath.h

INCLUDEPATH += include
LIBS += -lm
QMAKE_CXXFLAGS += -ffast-math -O2
